<?php


namespace frontend\controllers;

use yii\web\Controller;

class TestController extends Controller
{

    public function actionSay($message = 'hello')
    {
        throw new \yii\web\HttpException(404);
        dd(\Yii::$app->response->statusCode);
        return $this->render('say', ['message'=>$message]);
    }








}